package com.ruoyi.bi.service.model;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.bi.domain.common.Result;
import com.ruoyi.bi.domain.model.Cube;
import com.ruoyi.common.core.domain.AjaxResult;

import java.util.List;
import java.util.Map;

public interface CubeService extends IService<Cube> {

	List<Cube> listCube(String keyword);

	Integer getMaxCubeId();

	public JSONObject getCubeById(Integer cubeId);

	public AjaxResult insertCube(Cube cube);

	public Result deleteCube(Integer cubeId);

	public Result updateCube(Cube cube);

	public void updateDim(Cube cube);

	public void updateKpi(Cube cube);

	public void insertDim(Cube cube);

	public void insertDimRela(Cube cube);

	public void insertKpi(Cube cube);

	public void insertKpiRela(Cube cube);

	public List<Map<String, Object>> treeCube(Integer cubeId);

}
